<div class="row">
    {% for lesson in lessons %}
    <div class="col-md-4 lesson-block">
        <a class="center-block text-center">
            {{ image(lesson.img, 'class': 'img-responsive lesson-img') }}
            <div>{{lesson.name}}</div>
        </a>
    </div>
    {% endfor %}
</div>